echo "开始云崽安装脚本"
echo "正在下载喵喵版云崽本体"
git clone --depth=1 https://gitee.com/yoimiya-kokomi/Miao-Yunzai.git
echo "下载完毕！"
cd Miao-Yunzai 
echo "正在下载喵喵插件"
git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
echo "下载完毕！"
echo "正在安装pnpm"
npm install pnpm -g
echo "pnpm安装完毕！"
echo "正在使用pnpm安装依赖"
pnpm install -P
echo "依赖安装完毕！"
echo "正在安装锅巴插件" 
git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
yes | pnpm install --filter=guoba-plugin
echo "锅巴插件安装完毕！"
echo "正在安装土块插件"
git clone --depth=1 https://gitee.com/SmallK111407/earth-k-plugin.git ./plugins/earth-k-plugin/
pnpm add systeminformation -w
echo "土块插件安装完毕！"
echo "正在安装闲心插件"
git clone https://gitee.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/
echo "闲心插件安装完毕！"
echo "正在安装鸣潮插件"
git clone https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin
pnpm install --filter=waves-plugin
echo "鸣潮插件安装完毕！"
echo "正在安装逍遥插件"
git clone https://gitee.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/
echo "逍遥插件安装完毕！"
curl -o 启动云崽.bat https://gitee.com/lniuua/yunzai/raw/master/%E5%90%AF%E5%8A%A8%E4%BA%91%E5%B4%BD.bat
echo "云崽机器人搭建完成！"
echo "请执行node app命令启动服务器"
echo "如果登录过程中出现QQ版本过低,错误码45请执行以下命令安装签名服务器"
echo "安装签名服务器命令:curl -sSL QSign.icu/X | bash"